package com.designpatterns.builder;

import com.designpatterns.builder.Person.Sex;

public class BuilderPatternTest {
	public static void main(String[] args) {
		// Create person using person builder.
		Person person = new Person.Builder(111)
		.firstName("Hieu").lastName("Nguyen")
		.age(25).sex(Sex.MALE).build();
		
		System.out.println(person.getFirstName() + " " + person.getLastName());
	}
}
